SubscriptionHolder

StockSharp.Messages

Subscription holder.

継承元: Disposable

コンストラクター

SubscriptionHolder(ILogReceiver)

Subscription holder.

logs
Logs.

プロパティ

MaxTrackedItems : int

Maximum number of tracked helper entries.

メソッド

Add(T)

Add new subscription.

info
Subscription.
AddUnsubscribeRequest(long, long)

Add unsubscribe request identifier.

transactionId
Request identifier.
originalTransactionId
ID of the original message TransactionId for which this message is a response.
Clear()

Clear state.

DisposeManaged()

Release resources.

GetSubscriptions(T) : IEnumerable<T>

Get subscriptions for the specified session.

session
Session.

戻り値: Subscriptions.

GetSubscriptions(Message) : IEnumerable<T>

Get subscription for the specified message.

message
Message.

戻り値: Subscriptions.

HasSubscriptions(DataType, SecurityId) : bool

Determines whether any subscription exists for the specified data type and security.

dataType
Data type info.
securityId
Security ID.

戻り値: if any subscription exists; otherwise, .

Remove(T)

Remove all subscriptions for the specified session.

session
Session.

戻り値: Subscriptions.

Remove(T)

Remove subscription.

info
Subscription.
TryGetById(long, T) : bool

Try to get a subscription by the specified identifier.

id
Identifier.
info
The found subscription, if any.

戻り値: if a subscription with the specified identifier exists; otherwise, .

TryGetSubscription(long, SubscriptionStates?, T) : bool

Try to get the subscription by the specified identifier and switch to a new state if specified.

id
Identifier.
state
The state to set for the subscription, or to leave unchanged.
info
The found subscription, if any.

戻り値: if the subscription was found; otherwise, .

TryGetSubscriptionAndStop(long, T) : bool

Try to get the subscription by the specified identifier and set its state to Stopped.

id
Identifier.
info
The found subscription, if any.

戻り値: if the subscription was found; otherwise, .

イベント

SubscriptionChanged : Action<T>

Subscription changed event.